﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CoreWeb.Authentication
{
    /// <summary>
    /// api用户信息
    /// </summary>
    public class LoginUser
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public long UserId { get; set; }

        ///// <summary>
        ///// 可判断状态
        ///// </summary>
        //public int Status { get; set; }
        ///// <summary>
        ///// 可判断是否修改了密码
        ///// </summary>
        //public string Password { get; set; }

        /// <summary>
        /// 过期时间 yyyy-MM-dd HH:mm:ss
        /// </summary>
        public string Expires { get; set; }
        public virtual string GetToken()
        {
            return LoginUserManager.GetUserToken(this);
        }
    }
}
